package com.ea.admin.pojo.param.config;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Valid
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EditConfItemParam {
    @ApiModelProperty(value = "配置的id-主键", required = true)
    @NotBlank(message = "配置的id不能为空")
    private String companyConfId;

    @ApiModelProperty(value = "配置的下限值", required = true)
    @NotNull(message = "配置的下限值不能为空")
    private Object lowerValue;

    @ApiModelProperty(value = "配置的上限值", required = true)
    @NotNull(message = "配置的上限值不能为空")
    private Object upperValue;

    @ApiModelProperty(value = "配置的值的类型 0-int 1-string", required = true)
    @NotNull(message = "配置的值的类型不能为空")
    private Integer valueType;
}
